/**
 * 判断是否登录
 * @returns
 */
export const isLogin = () => sessionStorage.getItem("token");

/**
 * 设置token
 * @param {*} token
 * @returns
 */
export const setToken = (token) => sessionStorage.setItem("token", token);

/**
 * 获取token
 * @returns
 */
export const getToken = () => sessionStorage.getItem("token");
/**
 * 清除sessionStorage
 * @returns
 */
export const removeToken = () => sessionStorage.removeItem("token");

export const serverUrl = "http://192.168.15.26:1337";

// export const serverUrl = "http://localhost:1337";
